import request from './request.js'
// 手输手机号登录
export const tokenphone = (params) => {
  return request('/blade-auth/phone-token?account='+ params.account + '&grantType=' + params.grantType + '&userType=2' + '&tenantId=' + params.tenantId, params, 'post');
};
export const login = (params) => {
  return request('/blade-system/dept/login', params, 'get');
};
export const getAddress = (params) => {
  return request('/blade-system/dept/appLevelList', params, 'get');
};
export const getAddressxq = (params) => {
  return request('blade-system/village/lazy-tree', params, 'get');
};
export const updateMessage = (params) => {
  return request('/blade-user/update', params, 'post');
};
export const getuserInfos = (params) => {
  return request('blade-user/info', params, 'get');
};
export const searchDis = (code) => {
  return request('/blade-system/dict/dictionary', code, 'get');
};
export const getList = (params) => {
  return request('/blade-system/notice/list', params, 'get');
};
export const submitMessage = (params) => {
  return request('/blade-system/notice/submit', params, 'post');
};
export const dictionary = (params) => {
  return request('/blade-system/dict/dictionary', params, 'get');
};

export const ownerSave = (params) => {
  return request('/complaint/app-ownerSave', params, 'post ');
};
export const complaintpage = (params) => {
  return request('/complaint/app-page', params, 'get');
};
export const phonetokenadmin = (params) => {
  return request('/blade-auth/phone-token-admin?account='+ params.account + '&grantType=' + params.grantType + '&userType=1' + '&tenantId=' + params.tenantId, params, 'post');
};

// 查询所有小区
export const estateapppage = (params) => {
  return request('/estate/app-page', params, 'get');
};
// 物业报修新增
export const repairrepairSave = (params) => {
  return request('/repair/app-repairSave', params, 'post');
};
// 物业端报修列表
// 今日巡更
export const patrolrecordapppage = (params) => {
  return request('/patrolrecord/app-page', params, 'get');
};
// 工单大厅
export const repairpage = (params) => {
  return request('/repair/page', params, 'get');
};
// 工单详情
export const repairdetail = (params) => {
  return request('/repair/app-detail', params, 'get');
};
// 今日巡更情况
export const patrolrecordpatrolInfo = (params) => {
  return request('/patrolrecord/app-patrolInfo', params, 'get');
};
// w我的工单
export const repairapppage = (params) => {
  return request('/repair/app-page', params, 'get');
};

//工单反馈
export const repairUpdate = (params) => {
  return request('/repair/app-repairUpdate', params, 'post');
};

// x巡更详情
export const patrolrecorddetail = (params) => {
  return request('/patrolrecord/app-detail', params, 'get');
};

// 上报巡更
export const patrolrecordupdate = (params) => {
  return request('/patrolrecord/app-update', params, 'post');
};

// 巡更计划
export const countRepair = (params) => {
  return request('/repair/app-countRepair', params, 'get');
};
export const patrolplanapppage = (params) => {
  return request('/patrolplan/app-page', params, 'get');
};
//投诉建议
export const tousuList = (params) => {
  return request('/foodrecipes/residentPage', params, 'get');
};
export const tousuDetail = (params) => {
  return request('/complaint/app-detail', params, 'get');
};
export const complaintUpdate = (params) => {
  return request('/complaint/app-complaintUpdate', params, 'post');
};
